#pragma once
#include "Body.h"

#include<random>
#include<ctime>
#include<iostream>
using namespace std;

class MultiBody
{
private:
    list<Body*> bodys;
    int bodys_num;
public:
    MultiBody();
    MultiBody(int num);
    ~MultiBody();

    Vector_2D get_vec_dis(const Body* obj1,const Body* obj2);
    double get_dis(const Body* obj1, const Body* obj2);

    Body* hit_check(Body* obj1, Body* obj2);
    void hit_event();

    void inter_F(Body* obj1,Body* obj2);
    void sum_F();

    void update();

    Body* find_body(int id);
};

